package com.zrf.springCloudTest;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;

/**
 * spring boot 启动器
 * @author zrf
 *         Created by zrf on 2016/9/4.
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableAutoConfiguration
@Configuration
@EnableConfigServer
public class Application {

    /**
     * main方法
     * @param args 参数
     */
    public static void main(String[] args) {
        new SpringApplicationBuilder(Application.class).web(true).run(args);
    }
}
